/*!
 * \file Utility.h
 * \brief Utility function.
 * \author Nus
 * \date 2008/03/05, 23:13
 */

#ifndef __UTILITY_H__
#define __UTILITY_H__

#include "Types.h"

/*!
 * \namespace Util
 * \brief Utilities.
 */
namespace Util
{
  //! \brief Fast string comparison.
  inline bool compareStr(const s8* s1, const s8* s2) {
    if(!s1 || !s2)
      return false;
    while(*s1 != '\0' && *s2 != '\0') {
      if(*s1 != *s2)
        return false;
      s1++;
      s2++;
    }
    return true;
  }

}

#endif
